from rich.console import Console
from rich.table import Table

table = Table(title="My Table")

table.add_column("id",style="cyan",no_wrap=True)
table.add_column("Name")
table.add_column("Age")

table.add_row("1", "John", "28")
table.add_row("2", "Jane", "26")
table.add_row("3", "Susan", "24")

console = Console()
console.print(table)